<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Detail extends CI_Controller {

	 var    $base;
   	 var    $css;

	 
	public function view($keyword)
	{
		log_message('debug', 'Category Controller Initialized');
		$this->load->model('sub_category_model');
		$this->load->model('book_model');
		$this->load->model('tag_model');
		//Get all sub category
        $categories = $this->sub_category_model->getSubCategoryAll();
        //Get all information of book
        $books = $this->getAllBook();
        
		$this->base = $this->config->item('base_url');
	    $this->css = $this->config->item('css');
		$data['css'] = $this->css;
	    $data['base'] = $this->base;
	    $data['categories'] = $categories;
	    $data['books'] = $books;
	    
		$this->load->view('index', $data);
	}
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */